package com.lcredu.seckill.service;

import com.lcredu.seckill.pojo.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lcredu.seckill.pojo.User;
import com.lcredu.seckill.vo.GoodsVo;

/**
 * @author 18442
 * @description 针对表【t_order(订单主表)】的数据库操作Service
 * @createDate 2025-08-28 17:34:22
 */
public interface OrderService extends IService<Order> {
    //这里生成订单
    //分析需求
    //这里需要生成一个订单对象
    //需要传入用户购买了什么商品,由于是秒杀,这里当做一件
    Order seckill(User user, GoodsVo goodsVo);

    //生成地址
    String createPath(User user, Long goodsId);

    //校验地址
    boolean checkPath(User user, Long goodsId, String path);

    //校验验证码
    boolean checkCaptcha(User user, Long goodsId, String captcha);
}
